/*
 * Created by LiuYou on 2020/12/13.
 *
 */

#include "People.hpp"

#include <utility>

std::ostream& operator<<(std::ostream& os, const People& people) {
    os << "name: " << people.name << " age: " << people.age;
    return os;
}

People::People(std::string name, int age) : name(std::move(name)), age(age) {}

const std::string& People::getName() const {
    return name;
}

int People::getAge() const {
    return age;
}

People::People(People&& rhs) noexcept: name(rhs.name), age(rhs.age) {

}
